<template>
  <div class="empty">
    <div>
      <img src="../assets/images/icon-null.svg" />
      <p>{{ message }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "empty",
  props: {
    message: {
      type: String,
      default: "暂无数据哦！",
    },
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.empty {
  position: relative;
  height: 100%;
  div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    img {
      width: 4rem;
      height: auto;
    }
    p {
      width: 8rem;
      margin: 25px 1rem 0;
      font-size: 16px;
      text-align: center;
    }
  }
}
</style>

